import VueRouter from 'vue-router'
import HomeContainer from './components/HomeContainer.vue'
import MY from './components/MY.vue'
import Okami from './components/Okami.vue'
import Record from './components/Record.vue'
import GameCenter from './components/GameCenter.vue'
import AwardingMallHome from './components/AwardingMall/AwardingMallHome.vue' //AwardingMallHome商城首页
import CommodityDetails from './components/AwardingMall/CommodityDetails.vue' //商品详情
import Puchase from './components/AwardingMall/purchase.vue'
import Address from './components/AwardingMall/purchase/address.vue'
import NewAddress from './components/AwardingMall/purchase/NewAddress.vue'
import AwardingOrders from './components/AwardingMall/AwardingOrders.vue'
import ChCompetition from './components/Game/ChCompetition.vue'
import Mybey from './components/Game/Mybey.vue'
import DetailsBetting from './components/Detailsofthebetting.vue'
import WinningList from './components/Game/XjwinningList.vue'
import M from './components/M.vue'
import Mylottery from './components/Mylottery.vue'
import MyGoldDetail from './components/MY/GoldDetail.vue'
import Recharge from './components/MY/Recharge.vue'
import SetUp from './components/MY/SetUp.vue'
import phoneBinding from './components/MY/PhoneBinding.vue'
import ModifyPassword from './components/MY/ModifyPassword.vue'
import UnboundSettings from './components/MY/UnboundSettings.vue'
import NewPassword from './components/MY/NewPassword.vue'
import PhoneCell from './components/MY/PhoneCell.vue'
import BindingResults from './components/MY/BindingResults.vue'
import zhibaochenggong from './components/Game/zhifuchenggong.vue'
import chongzhi from "./components/subcomponents/chongzhi.vue"
import xinyun from './components/Game/xingyun28.vue'
import XjCompetition from './components/Game/XjCompetition.vue'
import Bjphshi from './components/Game/Bjpkhi.vue'
import Chkajiang from './components/Game/Chkaijiang.vue'
import UserLogin from './components/MY/UserLogin.vue'
import RegisteredLogin from './components/My/RegisteredLogin.vue'
import Bjpkshilishi from './components/Game/BjPKshi.vue'
import Xyun28 from './components/Game/Xinyun28.vue'
import TouzhuXy28 from './components/MY/touzhu28.vue'
import TouzhuXj from './components/MY/Xjtouzhu.vue'
import XyWinningList from './components/Game/XywinningList.vue'
// 3. 创建路由对象
var router = new VueRouter({
    routes: [
        { path: '/', redirect: '/home' },
        { path: '/home', component: HomeContainer },
        { path: '/MY', component: MY },
        { path: '/Okami', component: Okami }, //测试
        { path: '/Record', component: Record },
        { path: '/GameCenter', component: GameCenter },
        { path: '/home/AwardingMallHome', component: AwardingMallHome }, //商品详情页
        { path: '/home/AwardingMallHome/CommodityDetails', component: CommodityDetails }, //商场首页路由
        { path: '/home/AwardingMallHome/Puchase', component: Puchase, name: "Puchase" }, //确认购买
        { path: '/MY/Address', component: Address, name: "Address" }, //新建地址
        { path: '/MY/Address/NewAddress', component: NewAddress, name: "NewAddress" }, //新建地址
        { path: '/MY/Address/AwardingOrders', component: AwardingOrders, name: "AwardingOrders" },
        { path: '/GameCenter/ChCompetition', component: ChCompetition }, //重庆竞猜
        { path: '/GameCenter/Mybey', component: Mybey }, //金币换
        { path: '/GameCenter/Mybey/DetailsBetting', component: DetailsBetting, name: "DetailsBetting" }, //投注详情
        { path: '/GameCenter/XjWinningList', component: WinningList, name: "WinningList" }, //新疆中奖名单
        { path: '/GameCenter/M', component: M }, //临时MY
        { path: '/MY/Mylottery', component: Mylottery, name: "Mylottery" }, //我的兑奖
        { path: '/MY/GoldDetail', component: MyGoldDetail, name: "MyGoldDetail" }, //金币明细
        { path: '/MY/Recharge', component: Recharge, name: "Recharge" }, //充值
        { path: '/MY/SetUp', component: SetUp, name: "SetUp" }, //设置页面 有绑定的
        { path: '/MY/phoneBinding', component: phoneBinding, name: "phoneBinding" }, //手机绑定修改
        { path: '/MY/ModifyPassword', component: ModifyPassword, name: "ModifyPassword" }, //密码修改
        { path: '/MY/UnboundSettings', component: UnboundSettings, name: "UnboundSettings" }, //设置页面 没有绑定的
        { path: '/MY/NewPassword', component: NewPassword, name: "NewPassword" }, //密码设置
        { path: '/MY/PhoneCell', component: PhoneCell, name: "PhoneCell" }, //手机绑定
        { path: '/MY/BindingResults', component: BindingResults, name: ' BindingResults' }, //手机绑定成功
        { path: '/MY/zhifuchenggong', component: zhibaochenggong, name: "zhifuchenggong" }, //支付成功
        { path: '/GameCenter/xingyu28', component: xinyun }, //幸运28
        { path: '/GameCenter/XjCompetition', component: XjCompetition }, //新疆时时彩
        { path: '/GameCenter/Bjphshi', component: Bjphshi }, //北京PK十
        { path: '/GameCenter/Chkajiang', component: Chkajiang, name: "Chkajiang" }, //重庆开奖
        { path: '/My/UserLogin', component: UserLogin }, //用户登入
        { path: '/My/RegisteredLogin', component: RegisteredLogin }, //用户注册
        { path: '/My/Bjpkshilishi', component: Bjpkshilishi }, //北京PK拾开奖历史
        { path: '/My/xyun28', component: Xyun28 }, //幸运28 开奖历史
        { path: '/My/Touzhu/Xy28', component: TouzhuXy28 }, //我得投注幸运28
        { path: '/My/Touzhu/TouzhuXj', component: TouzhuXj }, //我得投注新疆
        { path: '/GameCenter/XyWinningList', component: XyWinningList } //中奖榜单 幸28
    ],
})

// 把路由对象暴露出去
export default router